﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMasterPage.master"
    AutoEventWireup="true" CodeFile="Achievements.aspx.cs" Inherits="Modeling_Sub_Pages_NewsPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        #main
        {
            min-width: 1050px;
        }
        .toCenter
        {
            margin-right: auto;
            margin-left: auto;
        }
        .listViewStyleEvents
        {
            border: thin solid #C0C0C0;
            width: 110px;
            height: 125px;
            text-align: center;
            vertical-align: middle;
        }
        .dataPagerButton
        {
            text-decoration: none;
            font-size: 15px;
            font-weight: bold;
        }
        .dataPageTDStyle
        {
            text-align: right;
            border-top-style: solid;
            border-bottom-style: solid;
            border-top-width: thin;
            border-bottom-width: thin;
            border-top-color: #C0C0C0;
            border-bottom-color: #C0C0C0;
        }
        #tbEventList
        {
            padding-bottom: 20px;
            margin-right: auto;
            margin-left: auto;
        }
        #center1
        {
            width: 1060px;
            min-height: 500px;
            padding-top: 15px;
            margin-right: auto;
            margin-left: auto;
        }
        #center
        {  
            width: 800px;
        }
        .imgAchivements
        {
            width: 100px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="Server">
    <div id="center1">
        <div id="left">
            <table>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/SubPages/AboutUs.aspx"
                            CssClass="LinkStyle1">Pokemon University</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td id="activeTD">
                        <asp:HyperLink ID="HyperLink6" runat="server" NavigateUrl="~/SubPages/Achievements.aspx"
                            CssClass="activeLink">Achievements</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/SubPages/FAQs.aspx"
                            CssClass="LinkStyle1">FAQs</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl="~/SubPages/ContactUs.aspx"
                            CssClass="LinkStyle1">Contact Us</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/SubPages/Feedback.aspx"
                            CssClass="LinkStyle1">Feedback</asp:HyperLink>
                    </td>
                </tr>
            </table>
        </div>
        <div id="center">
            <table width="775px" id="tbEventList">
                <tr>
                    <td>
                        <asp:ListView ID="ProductDataList2" runat="server" GroupItemCount="5" 
                            onpagepropertieschanged="ProductDataList2_PagePropertiesChanged">
                            <LayoutTemplate>
                                <table class="toCenter">
                                    <tr>
                                        <td>
                                            <table border="0" cellspacing="20" cellpadding="5">
                                                <asp:PlaceHolder runat="server" ID="groupPlaceHolder"></asp:PlaceHolder>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </LayoutTemplate>
                            <GroupTemplate>
                                <tr>
                                    <asp:PlaceHolder runat="server" ID="itemPlaceHolder"></asp:PlaceHolder>
                                </tr>
                            </GroupTemplate>
                            <ItemTemplate>
                                <td class="listViewStyleEvents">
                                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# String.Format("Achievement.aspx?ID={0}", DataBinder.Eval(Container.DataItem, "[ID]")) %>'>
                                            <asp:Image ID="imgNews" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "[Image]") %>'
                                                ToolTip='<%# DataBinder.Eval(Container.DataItem, "[Title]") %>' runat="server"
                                                CssClass="imgAchivements" />
                                        </asp:HyperLink>
                                </td>
                            </ItemTemplate>
                        </asp:ListView>
                    </td>
                </tr>
                <tr>
                    <td class="dataPageTDStyle">
                        <asp:DataPager ID="DataPager1" runat="server" PagedControlID="ProductDataList2" PageSize="50">
                            <Fields>
                                <asp:NextPreviousPagerField NextPageText="Next ►" PreviousPageText="◄Previous" ButtonCssClass="dataPagerButton" />
                            </Fields>
                        </asp:DataPager>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
